function jumpTo(letter) {
	data = new Array();
	data['op']="jump";
	data['id']=letter;
	return glossaryAction(data);
}

function glossaryAction(data) {
	showprogress();
	var t = document.getElementById("teamid");
	if (t!=undefined) {
		data['teamid']=t.value;
	}
	xajax_glossaryAction(data);
}
function searchGlossary() {
	data = new Array();
	data['op']="search";
	data['id']=document.getElementById("searchfor").value;
	return glossaryAction(data);			
}

function searchGlossaryWindow(field) {
	showprogress();
	data = new Array();
	data['op']="search";
	data['id']=field.value;
	data['window']="true";
	gl = new Poat({center: true, width: 650});
	gl.execute("glossaryAction",data);
	return false;			
}

function glossaryAdd() {
	data = new Array();
	data['op']="new";
	return glossaryWindow(data);
}

function editGlossary(id) {
	data = new Array();
	data['op']="edit";
	data['id']=id;
	return glossaryWindow(data);	
}

function glossaryViewBy(id) {
	data = new Array();
	data['op']="find";
	data['id']=id;
	return glossaryWindow(data);	
}

function glossaryWindow(data) {
	showprogress();
	data['window']="true";
	var t = document.getElementById("teamid");
	if (t!=undefined) {
		data['teamid']=t.value;
	}	
	gl = new Poat({center: true});
	gl.execute("glossaryAction",data);
	return false;	
}

function glossaryView(id) {
	data = new Array();
	data['op']="view";
	data['id']=id;
	return glossaryWindow(data);
}

function saveGlossary() {
	showprogress();
	xajax_glossaryAction(xajax.getFormValues("glossary_form"));	
	WindowControl.destroy("glossaryAction");	
}
